package com.wpp.service.impl;

import com.wpp.controller.UserController;
import com.wpp.dao.UserDao;
import com.wpp.pojo.User;
import com.wpp.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Autowired
    private UserDao userDao;

    @Override
    public List<User> findAll(int id) {
        List<User> all = userDao.findAll(id);
        return all;
    }
}
